<?php get_header(); ?>

<div class="main_table">
<div class="main_table_row">
<div class="left_1"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:1px; height:1px"/></div>
						
<div class="main_cent">
<div class="co_name_bg">
<div class="co_name">
</div>
</div>


<div class="head_bg">
<div class="table2">
<div class="table_row2">
<div class="left2">

<?php if (have_posts()) : the_post(); // check for thumbnail
$thumb = get_post_meta($post->ID, 'articleimg', $single = true);
?>

	<!-- BEGIN latest -->
	<div class="latest">
	
		<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>

<?php // if there's a thumbnail
if($thumb !== '') { ?>
	<p>
	<a href="<?php the_permalink(); ?>"><img src="<?php echo $thumb; ?>"/></a>
	</p>
<?php } // end if statement

// if there's not a thumbnail
else { echo ''; } ?>

<div class="category">
<div class="meta1">
Posted by <?php the_author_posts_link(); ?> under <?php the_category(', ') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
</div></div>

<div class="latest_content">
<?php
	$content = get_the_content('',FALSE,'');
	$content = apply_filters('the_content', $content);
	$content = str_replace(']]>', ']]>', $content);
	echo substr($content,0,470);
?>&hellip;
	</div>
	</div>

	<?php endif; ?>

	<!-- END latest -->

<div class="headlines"></div>

<table width="591" border="0" cellspacing="0" cellpadding="0" style="margin-top:7px;">
  <tr>
              <td valign="top"> 
                <!-- BEGIN left -->
                <div class="left_box">
	
		<?php 
		if (have_posts()) : $count = 0; 
		while(have_posts()) : the_post(); 
		$count++;
		if ($count>5) break;
$thumb = get_post_meta($post->ID, 'articleimg', $single = true);
		?>

		<div class="content_left_top"></div>

		<!-- begin post -->



		<div class="content_left_bg">
		<div class="content_left">
<?php // if there's a thumbnail
if($thumb !== '') { ?>
	<p>
	<img src="<?php echo $thumb; ?>"
	/>
	</p>
<?php } // end if statement

// if there's not a thumbnail
else { echo ''; } ?>
		              <h1><a href="<?php the_permalink(); ?>">
                        <?php the_title(); ?>
                        </a></h1>

<div class="meta1">		 
<div class="category2"> 
                    Filed Under: <?php the_category(', ') ?>
                  </div></div>
<?php
	$content = get_the_content('',FALSE,'');
	$content = apply_filters('the_content', $content);
	$content = str_replace(']]>', ']]>', $content);
	echo substr($content,0,210);
?>&hellip;
		</div>

		</div>
		
<div class="content_left_bottom">
<div class="post_link">
	<a href="<?php the_permalink(); ?>">[-] Read the rest of this entry</a>
</div>
</div>

		<!-- end post -->
		
		<?php endwhile; endif; ?>

	
	</div>

<!-- END left -->
	
	</td>
              <td valign="top"> 
                <!-- BEGIN Right -->
                <div class="right_box">
	
		<?php 
		if (have_posts()) : $count = 0; 
		while(have_posts()) : the_post(); 
		$count++;
		if ($count>5) break;
$thumb = get_post_meta($post->ID, 'articleimg', $single = true);
		?>

		<div class="content_left_top"></div>

		<!-- begin post -->



		<div class="content_left_bg">
		<div class="content_left">
<?php // if there's a thumbnail
if($thumb !== '') { ?>
	<p>
	<img src="<?php echo $thumb; ?>"
	/>
	</p>
                      <?php } // end if statement

// if there's not a thumbnail
else { echo ''; } ?>
                      <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<div class="meta1">		 
<div class="category2"> 
                    Filed Under: <?php the_category(', ') ?>
                  </div></div>
<?php
	$content = get_the_content('',FALSE,'');
	$content = apply_filters('the_content', $content);
	$content = str_replace(']]>', ']]>', $content);
	echo substr($content,0,210);
?>&hellip;
		</div>

		</div>
		
<div class="content_left_bottom">
<div class="post_link">
	<a href="<?php the_permalink(); ?>">[-] Read the rest of this entry</a>
</div>
</div>

		<!-- end post -->
		
		<?php endwhile; endif; ?>

	
	</div>


<!-- End Right -->

	
	</td>
  </tr>
</table>
<div class="comment">
</div>

</div>
<div class="right2">
</div>
</div>
</div>
</div>							



							
	</div>

<div  class="main_left">
<?php include (TEMPLATEPATH . "/sidebar.php"); ?>
  </div>
						
<div class="right_1"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" alt="" align="top" style="width:1px; height:1px"/></div>
		</div>
		</div>

	<?php get_footer(); ?>
		</div>
		</div></div>
</body>
</html>
